﻿using FluentNHibernate.Mapping;
using easyccms.BusinessLayer.Entities;

namespace easyccms.Nhibernate.Mappings
{
    /// <summary>
    /// Mapping of enitity User group map to table in database using nhibernate.
    /// </summary>
    public class UserGroupMap : ClassMap<UserGroup>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UserGroupMap"/> class.
        /// </summary>
        public UserGroupMap()
        {
            Table("UserGroups");
            Id(x => x.UserGroupId);
            Map(x => x.GroupName);
            Map(x => x.Created);
            Map(x => x.Enabled);
            Map(x => x.Deleted);
            Map(x => x.CanDelete);
        }
    }
}
